package com.wwwarehouse.contract.bean;

import java.util.List;

/**
 * Description:
 * Copyright  : Copyright (c) 2017
 * Author     : yfwang
 * Date       : 2017/10/25 15:30
 */
public class ResourceBean {


    /**
     * code : 0
     * data : {"list":[{"definedName":"测试资源","definedUkid":52074001009185000,"identifyList":{"identifyCode":1},"mediaList":[{"relatedUrl":"http://confluence.wwwarehouse.com/download/attachments/39846876/database_op.png?version=1&modificationDate=1504528209000&api=v2"}]}],"page":1,"size":1,"total":1}
     * success : true
     */

    private int code;
    private DataBean data;
    private boolean success;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class DataBean {
        /**
         * list : [{"definedName":"测试资源","definedUkid":52074001009185000,"identifyList":{"identifyCode":1},"mediaList":[{"relatedUrl":"http://confluence.wwwarehouse.com/download/attachments/39846876/database_op.png?version=1&modificationDate=1504528209000&api=v2"}]}]
         * page : 1
         * size : 1
         * total : 1
         */

        private int page;
        private int size;
        private int total;
        private List<ListBean> list;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * definedName : 测试资源
             * definedUkid : 52074001009185000
             * identifyList : {"identifyCode":1}
             * mediaList : [{"relatedUrl":"http://confluence.wwwarehouse.com/download/attachments/39846876/database_op.png?version=1&modificationDate=1504528209000&api=v2"}]
             */

            private String definedName;
            private long definedUkid;
            private IdentifyListBean identifyList;
            private List<MediaListBean> mediaList;

            public String getDefinedName() {
                return definedName;
            }

            public void setDefinedName(String definedName) {
                this.definedName = definedName;
            }

            public long getDefinedUkid() {
                return definedUkid;
            }

            public void setDefinedUkid(long definedUkid) {
                this.definedUkid = definedUkid;
            }

            public IdentifyListBean getIdentifyList() {
                return identifyList;
            }

            public void setIdentifyList(IdentifyListBean identifyList) {
                this.identifyList = identifyList;
            }

            public List<MediaListBean> getMediaList() {
                return mediaList;
            }

            public void setMediaList(List<MediaListBean> mediaList) {
                this.mediaList = mediaList;
            }

            public static class IdentifyListBean {
                /**
                 * identifyCode : 1
                 */

                private int identifyCode;

                public int getIdentifyCode() {
                    return identifyCode;
                }

                public void setIdentifyCode(int identifyCode) {
                    this.identifyCode = identifyCode;
                }
            }

            public static class MediaListBean {
                /**
                 * relatedUrl : http://confluence.wwwarehouse.com/download/attachments/39846876/database_op.png?version=1&modificationDate=1504528209000&api=v2
                 */

                private String relatedUrl;

                public String getRelatedUrl() {
                    return relatedUrl;
                }

                public void setRelatedUrl(String relatedUrl) {
                    this.relatedUrl = relatedUrl;
                }
            }
        }
    }
}
